#{extends 'CRUD/layout.html' /}

<div id="crudBlank" class="${type.name}">
	
	<h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@create(), enctype:'multipart/form-data'}
        #{crud.form }
            #{crud.custom 'belongTo'}
                <label > Belong To</label>
                #{select "object.belongTo", items:allMenus/}
            #{/crud.custom}

            #{crud.custom 'language'}
                <label > Language </label>
                <input name="object.language" value="${lang}" disabled="true" />
            #{/crud.custom}

            #{crud.custom 'topicCode'}
                <label > Topic Code </label>
                #{select "object.topicCode", items:allTopicCodes /}
            #{/crud.custom}

            #{crud.custom 'level'}
                <label > Level</label>
                #{select "object.level", items:1..2/}
            #{/crud.custom}

            #{crud.custom 'column'}
                <label > Column</label>
                #{select "object.column", items:1..2/}
            #{/crud.custom}
        #{/crud.form }

		<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
			<input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
			<input type="submit" name="_saveAndAddAnother" value="&{'crud.saveAndAddAnother', type.modelName}" />
		</p>
	#{/form}
	</div>

</div>